WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory S

Total Complexity 36
Dependencies 14
Dependents 19
Total lines 316
Lines of code 166
Logical lines of code 85
Comment lines 102
Methods 8
Properties 7

Methods 8

Method Rating Maintainability Complexity Lines of code
from_paypal_response()
A
43 12 50
from_wc_cart()
A
44 9 47
from_wc_order()
S
47 5 38
shipping_needed()
S
67 3 8
sanitize_soft_descriptor()
S
70 3 5
init_purchase_unit()
S
74 2 5
__construct()
S
65 1 9
country_without_postal_code()
S
65 1 4